//
//  QMTableView.h
//
//  Created by 李丹 on 2019/7/17.
//  Copyright © 2019 LZT. All rights reserved.
//

#import "QMUITableView.h"

NS_ASSUME_NONNULL_BEGIN
#define TableViewCornerRadius 4

@protocol JXPagerMainTableViewGestureDelegate <NSObject>
@optional
@property (nonatomic, assign) BOOL isNestEnabled;
- (BOOL)mainTableViewGestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer;
@end

@interface QMTableView : QMUITableView
//没有点击效果
@property (nonatomic)BOOL noTapEffect;
@property (nonatomic, weak) id<JXPagerMainTableViewGestureDelegate> gestureDelegate;

- (void)addSectionCorner:(CGFloat)corner willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath;
- (void)addSectionCorner:(CGFloat)corner willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath backgroundColor:(UIColor *)color;

@end

@interface UITableView (QMDTableView)
- (void)addSectionCornerWillDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath;

- (void)addSectionBottomLastRowCornerWillDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath;

@end
NS_ASSUME_NONNULL_END
